Fixed the signin function