view was added to login and few changes in code