Added more login functionality