Database log in now working