Added login functionality
Added space in error