implements login page
improves login functionality