added login and registration functionality to the page