Refactored session[:username] to current_user