added a post database to manage the alarm
corrected the user sign in error