fixed login url regex
fixed some bugs, added function for user registration view