added the signin function to the application layout