made the login script for the client