Admin form fixed

Everything related to admin form have been fixed apart from failure when
connection to database can't be established.