added login in views