if login redirect to dashboard