Revert "fixed function login and register"

This reverts commit 1e4daa7fd682c818bcd7c3aa41fdde631630e0c6.
Wrong Commit