Login authentication fixed