register feature

I added the feature when the user register they will auto login when
complete.