Edited, check for correct username/password