Change $_REQUEST to $request. Add login view.