try login function