fixed condition when show login form