User validation by using Struts2