(69985176) Autofill username field after failed login attempt

This is the first time I've ever touched Ruby, so please verify the convention is correct. If not, reject this.