Got signin duplicate function working