login fuctionality working and authorisation for users and admin working