Installation Fix

When user enter blank username or password, it was redirected to error
page, but creation of first post was done. so in that case 2 or more
post were created. Fixed that part :)