login+register+detection of user type

nice!

Signed-off-by: Gibran Gonzalez <haibrayn@hotmail.com>