Added user authentication and changes done for layout