fix user login fail reporting
add way of getting admin power settings
fix date representation in db