fixed login issue with normal user