Add support for login with username and password