make login button work