Fixed the problem with filtering permutas, added form validation to login and signup pages.