created views to optimize time of login2