creating a controller for authentication section done