Added go function for login