Improved base login functionality. Database is checked for username / email and password pair.