fixed added if statement to current user in application controller