Added some login functionality