login and register is working. yet to implement validity on the API side.