I done it th get an post

if request.post?
@user = Login.new(params[:login])
render_text @user.loginname
now i want to compare this value by existig value how i can do tha .
plese suggest thanx in advance