-Generify the API

Signed-off-by: Mario <mariojothy@gmail.com>
-Trying to fix the login bug

Signed-off-by: Mario <mariojothy@gmail.com>