Class 7: updating p_login function to send back to login page / homepage