Fixed issue with registration and password reset not working (issue #195)

This is a fix for issue #195

Possibly caused by spring security implementation.