added current_user method to application controller