In the previous chapter, we learned how to validate form data and present custom error pages to customers. We’re well on our way to having a professional, polished commerce web site. But there’s one area we’re still a bit behind in: we need to make a way for customers to log in and update their profiles. We created the registration and login forms in previous chapters. We also saw how to persist those details to the database and validate login credentials.