Adding logic to display sign in login or sign up in application view