Working on login from old database