login and UI for patients