fixed user auth login bug

fixed user authentication bug. changed find_by_email to find_by(username: params[:username])