Added if statement for if username and password are correct.