Fixed buggy code in modesl/user.rb
Fixed buggy code in modesl/user.rb

Frontend input fields don't allow characters like newlines and null-terminators and hence requests would never really contain these characters. 

However, an attacker can easily bypass this using a program like curl and craft a request sending a newline character in the either the username or password field. This will cause the app to produce an error and can produce a back-trace. Implications of this should be obvious.
MarkUsProject/Markus,reidka/Markus,reidka/Markus,melneubert/Markus,MarkUsProject/Markus,melneubert/Markus,jeremygoh/Markus,finnergizer/Markus,binuri/Markus,WilsonChiang/Markus,finnergizer/Markus,melneubert/Markus,finnergizer/Markus,arkon/Markus,WilsonChiang/Markus,ealonas/Markus,binuri/Markus,finnergizer/Markus,wkwan/Markus,SoftwareDev/Markus,arkon/Markus,reidka/Markus,MarkUsProject/Markus,jeremygoh/Markus,Lysette/Markus,WilsonChiang/Markus,wkwan/Markus,melneubert/Markus,melneubert/Markus,benjaminvialle/Markus,binuri/Markus,wkwan/Markus,arkon/Markus,ealonas/Markus,jeremygoh/Markus,ealonas/Markus,ealonas/Markus,ealonas/Markus,reidka/Markus,SoftwareDev/Markus,david-yz-liu/Markus,finnergizer/Markus,melneubert/Markus,jeremygoh/Markus,SoftwareDev/Markus,wkwan/Markus,Lysette/Markus,reidka/Markus,benjaminvialle/Markus,WilsonChiang/Markus,MarkUsProject/Markus,david-yz-liu/Markus,arkon/Markus,wkwan/Markus,reidka/Markus,reidka/Markus,arkon/Markus,binuri/Markus,binuri/Markus,jeremygoh/Markus,WilsonChiang/Markus,jeremygoh/Markus,arkon/Markus,ealonas/Markus,Lysette/Markus,finnergizer/Markus,ealonas/Markus,wkwan/Markus,ealonas/Markus,david-yz-liu/Markus,benjaminvialle/Markus,wkwan/Markus,binuri/Markus,MarkUsProject/Markus,Lysette/Markus,benjaminvialle/Markus,jeremygoh/Markus,finnergizer/Markus,wkwan/Markus,melneubert/Markus,wkwan/Markus,melneubert/Markus,melneubert/Markus,binuri/Markus,benjaminvialle/Markus,WilsonChiang/Markus,finnergizer/Markus,ealonas/Markus,WilsonChiang/Markus,WilsonChiang/Markus,reidka/Markus,david-yz-liu/Markus,david-yz-liu/Markus,reidka/Markus,david-yz-liu/Markus,benjaminvialle/Markus,david-yz-liu/Markus,SoftwareDev/Markus,binuri/Markus,benjaminvialle/Markus,MarkUsProject/Markus,MarkUsProject/Markus,jeremygoh/Markus,arkon/Markus,jeremygoh/Markus,Lysette/Markus,Lysette/Markus,arkon/Markus,david-yz-liu/Markus,SoftwareDev/Markus,WilsonChiang/Markus,arkon/Markus,binuri/Markus,finnergizer/Markus,Lysette/Markus,SoftwareDev/Markus,SoftwareDev/Markus,MarkUsProject/Markus,david-yz-liu/Markus