Implemented prepared statements for login