updates for user log in and homepage