Fix login and deployment