Implemented password policy check.
Merge branch 'passwordpolicycheck'
Added redirect to previous page after login.
Merge branch 'redirectafterlogin'